package com.stormrage.entity.learn;

import java.io.Serializable;

/**
 * @Title: LeaBunch.java
 * @Package com.stormrage.entity.learn
 * @Description: 班级 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月15日
 * @version V1.0
 */
public class LeaBunch implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -267882579607629164L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private String bunch;

	private Integer termId;

	private Integer type;

	private Integer locked;

	// ------------------------------- Fields -------------------------------

	public LeaBunch() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getBunch() {
		return bunch;
	}

	public void setBunch(String bunch) {
		this.bunch = bunch;
	}

	public Integer getTermId() {
		return termId;
	}

	public void setTermId(Integer termId) {
		this.termId = termId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaBunch instance(Integer id, Integer locked) {
		LeaBunch entity = new LeaBunch();
		entity.setId(id);
		entity.setLocked(locked);
		return entity;
	}

	public static LeaBunch instance(Integer id, String bunch, Integer termId, Integer type, Integer locked) {
		LeaBunch entity = new LeaBunch();
		entity.setId(id);
		entity.setBunch(bunch);
		entity.setTermId(termId);
		entity.setType(type);
		entity.setLocked(locked);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " bunch - " + bunch + " termId - " + termId + " type - " + type
				+ " locked - " + locked;
	}

}
